package com.hyj.ecp.backstage.statistics.service.impl;

import java.util.*;

import javax.annotation.Resource;

import org.mybatis.spring.SqlSessionTemplate;
import org.springframework.stereotype.Service;

import com.hyj.ecp.backstage.statistics.bean.CustMonthQO;
import com.hyj.ecp.backstage.statistics.bean.MsColumnXML;
import com.hyj.ecp.backstage.statistics.service.ICustStatisticsService;
@Service
public class CustStatisticsService implements ICustStatisticsService {

	@Resource(name="sqlSession")
    private  SqlSessionTemplate sql;
	
	@Override
	public String queryCustMonth(CustMonthQO qo) {
		
		List<Map<String,Object>> list = sql.selectList("com.ecp.backstage.statistics.queryCustMonth",qo);
		List<String> series = new ArrayList<String>();
		series.add("2012");
		series.add("2013");
		return MsColumnXML.getMsColumnXml("月新增客户报表","月份","用户量 ","",list,series);
	}

}
